package com.WOWTradeNews.phone;

import com.WOWTradeNewsTest.R;

import android.app.Activity;
import android.app.AlertDialog.Builder;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.Button;

public class HelpDetail extends Activity {
	private WebView webView;
	private Button backButton;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.help);
        Bundle bundle = getIntent().getExtras();
        String url = bundle.getString("url");
        
        backButton = (Button) findViewById(R.id.back);
        backButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});
        
        webView = (WebView) findViewById(R.id.help_web);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.setScrollBarStyle(0);
        WebSettings webSettings = webView.getSettings();
        webSettings.setAllowFileAccess(true);
        webSettings.setBuiltInZoomControls(true);
        
        webView.loadUrl(url);
	}
	
	
}
